<?php //e($javascript->link('admin_index'));?>
<div id="event-admin">
	<table id="the-table">
		<caption>Events on <?php e($sitename);?></caption>
		<colgroup>
			<col id="venue" />
			<col id="address" />
			<col id="datetime" />
		</colgroup>
		<thead>
			<tr>
				<th scope="col">Event Venue</th>
				<th scope="col">Event Address</th>
				<th scope="col">Event Date & Time</th>
			</tr>
		</thead>
		<tbody>
			<?php $row = 0; ?>
			<?php foreach ($events as $event) : ?>
			<tr class="<?php ($row % 2 ? e('even') : e('odd'));?>">
				<td><?php e($html->link($event['Event']['venue'], '/events/view/' . $event['Event']['id']));?></td>
				<td><?php e($event['Event']['address']);?><br /><?php e($event['Event']['city']);?><br /><?php e($event['Country']['name']);?></td>
				<td><?php e($time->format('D d M Y',$event['Event']['event_date']));?><br /><?php e($event['Event']['event_time']);?></td>
			</tr>
			<?php $row++; ?>
			<?php endforeach; ?>
		</tbody>
	</table>
</div>

<div id="paginate">
	<span class="previous">
		<?php e($paginator->prev('<< Previous', null, null, array('class' => 'disabled'))); ?>
	</span>
	<span class="next">
		<?php e($paginator->next('Next >>', null, null, array('class' => 'disabled'))); ?>
	</span>
	<br style="clear" />
</div>